package com.chunxuan.langquan.support.view;


import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;

import com.ruitu.arad.util.ScreenUtils;

public class AutoMoveTextView extends AppCompatTextView {
    public AutoMoveTextView(Context context) {
        this(context, null);
    }

    public AutoMoveTextView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public AutoMoveTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        screenWidth = ScreenUtils.getScreenWidth();
        screenHeight = ScreenUtils.getScreenHeight();
    }

    private int screenWidth = 0;
    private int screenHeight = 0;
    private int parentWidth = 0;
    private int parentHeight = 0;

    public void startMove() {

    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
//        canvas.drawText();
    }
}
